import React, {Component} from 'react';
import TitleStyles from './index.module.scss';
class Title extends Component<TitleProps> {
    static defaultProps = {
        className: '',
        style: {},
    };
    render() {
        return (
            <div className={`${TitleStyles.title} ${this.props.className}`} style={this.props.style}>
                <h2>{this.props.title}</h2>
            </div>
        );
    }
}
interface TitleProps {
    className?: string;
    title: string;
    style?: object;
}

export default Title;
